public class Porsche extends SportCar {

	private String productionCountry;
	private int horsePower;

	Porsche(int numberOfDoors, boolean isSportCar, boolean isCabriolet,
			double price) {
		super(numberOfDoors, isSportCar, isCabriolet, price);

	}

	public void increaseHorsePower() {
		if (productionCountry.equals("Germany"))
			horsePower += 20;
	}

	public int getHorsePower() {
		return horsePower;
	}

	public void setHorsePower(int horsePowers) {
		if (horsePower > 250)
			this.horsePower = horsePowers;
	}

	public String getProductionCountry() {
		return productionCountry;
	}

	public void setProductionCountry(String productionCountry) {
		if (productionCountry != null)
			this.productionCountry = productionCountry;
	}

}
